<template>
<li @click="handlsDelete">{{content}}{{index}}</li>
</template>

<script>
export default {
  // 从父组件接收值
  props: ['content', 'index'],
  methods: {
    handlsDelete () {
      // 调用父组件里的方法 方法名-参数
      this.$emit('delete', this.index)
    }
  }
}
</script>

<style scoped>
</style>
